<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡动画</title>
    <style>
        .container{
            width: 100px;
            height: 100px;
            background: red;
            /* transition: width 1s,background 2s; */
        }
        .container:hover{
            /* width: 500px; */
            background: blue;
            /* transform: translateX(50px); */
        }
    </style>
</head>
<body>
    <div class="container"></div>
</body>
</html>